Emphasise that any control block can be inside any other. i.e. repeat inside another repeat, repeat inside if-then, if-then inside repeat, etc.
Points to Ponder: When looking for prime numbers, the second loop does not need to run till the desired number. Ask the students to think about where it can stop. I.e. If it is a composite number, it has to have a factor less than _____. They may first come up with N/2. You can point out that there has to be a factor less than sqrt(N).
For both the options, you can ask the students to think about how many steps this program will take to check if a number is a prime.